<template>
	<view class="page">
		<view v-for="(item,index) in consultArray" class="listItem">
			<view class="titleLine">
				<view>{{index+1}}</view>
				<view>{{item.title}}</view>
			</view>
			<view class="itmContent">
				<view></view>
				<view>
					11
				</view>
			</view>
		</view>

		<view style="height: 200rpx;"></view>
	</view>
</template>

<script>
	let that = null;
	export default {
		data() {
			return {
				consultArray: []
			}
		},
		onLoad() {
			that = this;
			for (let i = 0; i < 8; i++) {
				that.consultArray.push({
					retract: true,
					title: `问题${i+1}`
				})
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.page {
		overflow: scroll;
	}

	.listItem {

		margin-left: 20rpx;
		margin-right: 20rpx;
		margin-top: 10rpx;

		.titleLine {
			display: flex;
			justify-content: space-between;
			align-items: center;


			&>view:first-child {
				width: 50rpx;
				height: 50rpx;
				background: #248cfa;
				border-radius: 25rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				color: #ffffff;
			}

			&>view:last-child {
				flex: 1;
				margin-left: 10rpx;
				background-color: #248cfa;
				height: 50rpx;
				display: flex;
				align-items: center;
				border-radius: 16rpx;
				padding: 4rpx 10rpx;
				color: #ffffff;
			}
		}

		.itmContent {
			display: flex;
			margin-top: 10rpx;

			&>view:first-child {
				width: 4rpx;
				height: auto;
				margin-left: 23rpx;
				margin-right: 23rpx;
				background-color: #248cfa;
			}

			&>view:last-child {
				min-height: 120rpx;
				flex: 1;
				margin-left: 10rpx;
				background-color: rebeccapurple;
			}
		}
	}
</style>